﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Velocity4Net.Errors
{
    /**
     * Application-level exception thrown when macro calls within macro calls
     * exceeds the maximum allowed depth. The maximum allowable depth is given
     * in the configuration as velocimacro.max.depth.
     * @since 1.6
     */
    public class MacroOverflowException : VelocityException
    {
        /**
         * @param exceptionMessage The message to register.
         */
        public MacroOverflowException(String exceptionMessage)
            : base(exceptionMessage)
        {
        }

        /**
         * @param exceptionMessage The message to register.
         * @param wrapped A throwable object that caused the Exception.
         */
        public MacroOverflowException(String exceptionMessage, System.Exception wrapped)
            : base(exceptionMessage, wrapped)
        {

        }

        /**
         * @param wrapped A throwable object that caused the Exception.
         */
        public MacroOverflowException(System.Exception wrapped)
            : base(wrapped)
        {
        }
    }
}
